<template>
  <div class="set">
    <div class="header">
      <van-icon name="arrow-left" @click="back()" />
      <h3>系统设置</h3>
    </div>
    <div class="con">
      <ul class="d1">
        <li>
          <span>账号安全</span>
          <p><van-icon name="arrow" /></p>
        </li>
        <li>
          <span>资质证照</span>
          <p><van-icon name="arrow" /></p>
        </li>
        <li>
          <span>隐私政策</span>
          <p><van-icon name="arrow" /></p>
        </li>
        <li>
          <span>用户协议</span>
          <p><van-icon name="arrow" /></p>
        </li>
        <li>
          <span>运费规则</span>
          <p><van-icon name="arrow" /></p>
        </li>
      </ul>
      <ul class="d2">
        <li>
          <span>清除缓存</span>
          <p>120.5KB</p>
        </li>
      </ul>

      <ul class="d3">
        <li>
          <span>账号安全</span>
          <p>账号/密码管理</p>
        </li>
        <li>
          <span>账号注销</span>
          <p><van-icon name="arrow" /></p>
        </li>
      </ul>
    </div>
    <p class="ban">版本号V1.8.8</p>
    <div class="back" @click="tuichu">退出登录</div>
  </div>
</template>

<script>
export default {
  methods: {
    back() {
      this.$router.push("/aboutme");
    },
    tuichu() {
      localStorage.removeItem("user");
      this.$router.push("/aboutme");
      location.reload();
    },
  },
};
</script>

<style scoped>
@import url(../assets/life/iconfont.css);
.header {
  height: 0.5rem;
  width: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
}
.header .van-icon {
  font-size: 0.25rem;
  margin-left: 0.1rem;
}
.header h3 {
  width: 80%;
  text-align: center;
}
.con .d1 {
  width: 100%;
  background-color: #fff;
  margin-top: 0.05rem;
}
li {
  height: 0.5rem;
  line-height: 0.5rem;
  border-top: 0.01rem solid #ccc;
  display: flex;
}
li span {
  margin-left: 0.1rem;
  width: 10rem;
}
.con .d2 {
  width: 100%;
  height: 0.5rem;
  background-color: #fff;
  margin-top: 0.1rem;
  /* margin-left: 0.1rem; */
}
.con .d3 {
  width: 100%;
  background-color: #fff;
  margin-top: 0.1rem;
}
p {
  font-size: 0.13rem;
  color: #bdc0c5;
  width: 100%;
  text-align: center;
}
.back {
  width: 100%;
  background-color: #fff;
  height: 0.6rem;
  line-height: 0.7rem;
  position: fixed;
  bottom: 0;
  text-align: center;
  font-size: 0.16rem;
  color: #c03131;
}
.ban {
  margin-top: 0.2rem;
}
</style>